package com.code.day07.LambdaStudy;

import java.util.function.Predicate;

public class DemoPredicate {
    public static void main(String[] args) {
        method(s -> s.endsWith("a"), "asssddasd");
    }
    public static void method(Predicate<String> predicate, String tar){
        boolean b = predicate.test(tar);
        System.out.println(b);
    }
}
